<template>
	<view class="box">
		<text class="title">独家放送</text>
		<view class="content">
			<view class="content-info" v-for="(item,index) in result" :key="item.id" @click="send(item.id)">
				<view class="content-info-list">
					<u--image :src="item.sPicUrl" width="300" height="150" radius="15rpx" mode="widthFix"></u--image>
					<u--text :text="item.name"></u--text>
				</view>
			</view>

		</view>
	</view>
</template>

<script>
	import {
		_getExclusive
	} from '@/http/home.js'
	export default {
		name: "HotTopic",
		data() {
			return {
				result: []
			}
		},
		methods: {
			async getExclusive() {
				const {
					result = []
				} = await _getExclusive();
				this.result = result
			},
			
			send(item){
				console.log(item);
				uni.navigateTo({
					url:'/view/Mv/Mv?id=' + item
				})
			}
		},
		created() {
			this.getExclusive()
		}
	}
</script>

<style lang="scss" scoped>
	.box {
		background-color:  #fff;
		margin: 25rpx 0rpx;
		padding: 15rpx 15rpx;
		border-radius: 15rpx;
	}
	.title{
		margin: 30rpx;
		font-size: 30rpx;
	}

	.content {
		// width: 80%;
		display: flex;
		overflow-x: scroll;

		&-info {
			display: flex;
			margin: 15rpx 30rpx;

			// flex-direction: column;
			&-list {
				display: flex;
				flex-direction: column;
			}
		}
	}
</style>
